package Data;

public class VectorXY implements java.io.Serializable {

	public int x;
	public int y;
	public Directions kierunek;
	
	public VectorXY(int x, int y, Directions kierunek)
	{
		this.x = x;
		this.y = y;
		this.kierunek = kierunek;
	}
	
	@Override
	public boolean equals(Object inObject)
	{
        if (inObject instanceof VectorXY)
		{
        	VectorXY other = (VectorXY) inObject;
			if (other !=null && other.x == x && other.y == y)
			{
				return true;
			}
		}
		return false;
	}
	
	@Override public String toString() 
	{
		return  "("+ x + ":" + y+ ")";
	}	
}

